package woaini.wind.bot.command.gpt;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
import woaini.wind.bot.core.command.ICmd;
import woaini.wind.bot.core.command.anno.SubCmd;
import woaini.wind.bot.core.session.Session;
import woaini.wind.bot.chat.impl.GptChatter;

@Component
@RequiredArgsConstructor
public class GptCmd implements ICmd {

  private final GptChatter gptChatter;

  @Override
  public String masterCmdName() {
    return "gpt";
  }

  @Override
  public String description() {
    return "gpt相关命令";
  }

  @Override
  public boolean auth() {
    return true;
  }

  @SubCmd(value = "余额", description = "余额查询",auth = true)
  public void chat(Session session) {
    session.replyMessage(gptChatter.useInfo());
  }
}
